// TODO: disable DHCB off
//package development.game;
//
//import java.io.IOException;
//
//import state.GameConstants;
//import state.GameForm;
//import state.Graphics;
//import state.GameImage;
//import state.Key;
//import state.TimerListener;
//import state.component.BottomBar;
//import state.component.Event;
//import state.component.EventListener;
//import state.component.GameMenu;
//import state.font.FontManager;
//import state.font.ImageText;
//import state.socket.DataPackage;
//import development.Constants;
//import development.DrawUtils;
//import development.Global;
//import development.bean.DuoiHinhBatChu;
//import development.socket.ProtocolConstants;
//
//public class FrmDuoiHinhBatChuOff extends GameForm implements TimerListener, EventListener {
//	private static final int SEND_REQUEST_QUESTION = 200;
//	private static final int SEND_REQUEST_DO_KHO = 199;
//	private static final int SEND_CAU_TRA_LOI = 201;
//	private state.GameImage backgroundImg;
//	private GameImage button1Img;
//	private GameImage button2Img;
//	private GameImage dhbcNameImg;
//	private GameImage avatarImg;
//	private GameImage nen1Img;
//	private GameImage khung1Img;
//	private int SCREEN_SHOW;
//	private final int SCREEN_MENU = 0;
//	private final int SCREEN_KHOI_DONG = 1;
//	private final int SCREEN_TANG_TOC = 2;
//	private final int SCREEN_VE_DICH = 3;
//
//	private final int SCREEN_KHOI_DONG_STATE_MAIN = 0;
//	private final int SCREEN_KHOI_DONG_STATE_CHON_HINH = 1;
//	private final int SCREEN_KHOI_DONG_STATE_DAP_AN = 2;
//	private final int SCREEN_KHOI_DONG_STATE_GOI_Y = 3;
//	private final int SCREEN_TANG_TOC_STATE_MAIN = 4;
//	private final int SCREEN_VE_DICH_STATE_MAIN = 5;
//
//	private int STATE;
//	private int index_menu;
//	private int index_khoidong;
//	private int index2;
//	private ImageText text;
//	private GameImage winplay1;
//	private GameImage winplay2;
//	private GameImage blue;
//	private GameImage blueImg;
//	private GameImage playImg;
//	private GameImage avatar2Img;
//	private GameImage saiImg;
//	private String[] namePart;
//	private int diem = 0;
//
//	private int count;
//	private int timeplay;
//	private static GameForm singleton;
//	private DuoiHinhBatChu currentDuoiHinhBatChu;
//	private DuoiHinhBatChu duoiHinhBatChu_mhchinh;
//	private int currentQuestionIndex;
//	private int dokho;
//	private int[] array_khoidong = new int[9];
//
//	public static GameForm instance() {
//		if (singleton == null) {
//			singleton = new FrmDuoiHinhBatChuOff();
//		}
//		return singleton;
//	}
//
//	public void init(java.util.Hashtable parameters) {
//		dokho = 0;
//		SCREEN_SHOW = SCREEN_MENU;
//		index_menu = 0;
//		index2 = 0;
//		index_khoidong = 0;
//		count = 0;
//		timeplay = 60;
//		array_khoidong = new int[9];
//		namePart = new String[]{"Khởi động", "Tăng tốc", "Về đích"};
//		currentDuoiHinhBatChu = new DuoiHinhBatChu();
//		duoiHinhBatChu_mhchinh = new DuoiHinhBatChu();
//		try {
//			saiImg = GameImage.createImage("/dhbc/sai.png");
//			backgroundImg = GameImage.createImage("/dhbc/background.png");
//			button1Img = GameImage.createImage("/dhbc/button1.png");
//			button2Img = GameImage.createImage("/dhbc/button2.png");
//			dhbcNameImg = GameImage.createImage("/dhbc/duoi-hinh-bat-chu.png");
//			avatarImg = GameImage.createImage("/dhbc/avatar.png");
//			avatar2Img = GameImage.createImage("/dhbc/avatar2.png");
//			winplay1 = GameImage.createImage("/dhbc/winplay1.png");
//			winplay2 = GameImage.createImage("/dhbc/winplay2.png");
//			blue = GameImage.createImage("/dhbc/blue.png");
//			blueImg = GameImage.createImage("/dhbc/winplay1.png");
//			nen1Img = GameImage.createImage("/dhbc/nen1.png");
//			text = FontManager.getFont(FontManager.FONT_SIZE_8);
//			khung1Img = GameImage.createImage("/dhbc/khung1.png");
//		} catch (IOException e) {
//		  if (Global.systemCanvas.isDebugMode()) {
//        e.printStackTrace();
//      }
//		}
//		setTimerListener(this);
//		/*DataPackage dataPackage = DataPackage.createDataPackage1(ProtocolConstants.RequestHeader.GAME_DUOI_HINH_BAT_CHU_OFF_ACTION_REQUEST);
//	    dataPackage.putInt(SEND_REQUEST_QUESTION);
//	    dataPackage.putInt(dokho);
//	    Global.gameActionClient.write(dataPackage);*/
//	}
//
//	public void onRecieveDataProcess(DataPackage dataPackage) {
//		int header = dataPackage.nextInt();
//		switch (header) {
//		case SEND_REQUEST_QUESTION:
//			try {
//				// Khời tạo các thông tin của một ảnh khi mở ô
//				/*dataPackage.putString(currentQuestion.getCau_hoi());
//			    dataPackage.putString(currentQuestion.getDap_an_1());
//			    dataPackage.putString(currentQuestion.getDap_an_2());
//			    dataPackage.putString(currentQuestion.getDap_an_3());
//			    dataPackage.putString(currentQuestion.getDap_an_4());
//				dataPackage.putByteArray(currentQuestion.getPicture());*/
//				String cauhoi = dataPackage.nextString();
////				currentDuoiHinhBatChu.setPicture(Image.createImage("/dhbc/hinh_phu.png"));
//				currentDuoiHinhBatChu.setCau_hoi(cauhoi);
//				currentDuoiHinhBatChu.setDapan_1(dataPackage.nextString());
//				currentDuoiHinhBatChu.setDapan_2(dataPackage.nextString());
//				currentDuoiHinhBatChu.setDapan_3(dataPackage.nextString());
//				currentDuoiHinhBatChu.setDapan_4(dataPackage.nextString());
//				byte[] b = dataPackage.nextByteArray();
//				if (b == null) {
//				}
//				GameImage img = GameImage.createImage(b, 0, b.length);
//				duoiHinhBatChu_mhchinh.setPicture(img);
//				currentDuoiHinhBatChu.setPicture(img);
////				currentDuoiHinhBatChu.setGiai_thich_dap_an("Đây là đáp án 'câu giờ' nhé");
////				currentDuoiHinhBatChu.setGoi_y("Có một cần cầu, và một đồng hồ");
//			} catch (Exception e) {
//			}
//			timeplay = 60;
//			GameMenu menu = new GameMenu(new String[]{currentDuoiHinhBatChu.getDapan_2(), currentDuoiHinhBatChu.getDapan_3(), currentDuoiHinhBatChu.getDapan_4(), currentDuoiHinhBatChu.getDapan_4()},
//					this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//			GameMenu menu1 = new GameMenu(new String[]{"Bỏ qua"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//			BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//			bottomBar.setLabels("Menu", "", "Chọn đáp án");
//			bottomBar.setLeftMenu("Menu", menu1);
//			bottomBar.setRightMenu("Chọn đáp án", menu);
//			break;
//
//		default:
//			break;
//		}
//	}
//
//	public void draw(Graphics g) {
//		g.drawImage(backgroundImg, 0, 0, GameConstants.TOP_LEFT_ANCHOR);
//		g.drawImage(_image, _x, _y, _anchor);
//		if (SCREEN_SHOW == SCREEN_MENU) {
//			drawLevelMenu(g);
//		} else {
//			drawScreen_KhoiDong(g);
//		}
//	}
//
//	public void drawLevelMenu(state.Graphics g) {
//		g.drawImage(avatarImg, GameConstants.SCREEN_WIDTH / 2, 50, GameConstants.CENTER_ANCHOR);
//		// g.drawImage(dhbcNameImg , GameConstants.SCREEN_WIDTH/2, 100, GameConstants.CENTER_ANCHOR);
//		for (int i = 0; i < 3; i++) {
//			g.drawImage(button1Img, GameConstants.SCREEN_WIDTH / 2, 144 + i * 35, GameConstants.CENTER_ANCHOR);
//			if (i == index_menu) {
//				g.drawImage(button2Img, GameConstants.SCREEN_WIDTH / 2, 144 + i * 35, GameConstants.CENTER_ANCHOR);
//			}
//			text.drawString2(g, namePart[i], 0x0000BB, GameConstants.SCREEN_WIDTH / 2, 144 + i * 35, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, namePart[i], 0x0000BB, GameConstants.SCREEN_WIDTH / 2, 144 + i * 35, GameConstants.CENTER_ANCHOR);
//		}
//	}
//
//	public void drawScreen_KhoiDong(Graphics g) {
//		switch (STATE) {
//		case SCREEN_KHOI_DONG_STATE_MAIN:
//			text.drawString2(g, namePart[0], 0x000000, GameConstants.SCREEN_WIDTH / 2, 15, GameConstants.CENTER_ANCHOR);
//			g.drawImage(blue, GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, "Bài số 1", 0xffffff, GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			g.drawImage(blue, GameConstants.SCREEN_WIDTH - GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, "Ô số " + (index_khoidong + 1), 0xffffff, GameConstants.SCREEN_WIDTH - GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			g.drawImage(nen1Img, GameConstants.SCREEN_WIDTH / 2, 65, GameConstants.TOP_HCENTER_ANCHOR);
//			g.drawImage(avatar2Img, GameConstants.SCREEN_WIDTH / 2, 215, GameConstants.TOP_HCENTER_ANCHOR);
//			if (duoiHinhBatChu_mhchinh.getPicture() != null) {
//				g.drawImage(duoiHinhBatChu_mhchinh.getPicture(), GameConstants.SCREEN_WIDTH / 2, 70, GameConstants.TOP_HCENTER_ANCHOR);
//			}
//
//			for (int i = 0; i < 4; i++) {
//				g.setColor(0xffffff);
//				if (i < 2) {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * i, 70, 90, 69);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 27 + 90 * i, 70 + 17, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 20 + 90 * i, 70 + 10, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * i, 70, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * i, 70, 90, 69);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 27 + 90 * i, 70 + 10 + 7, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 20 + 90 * i, 70 + 10, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//
//				} else {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 2), 70 + 69, 90, 69);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 27 + 90 * (i - 2), 70 + 17 + 69, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 20 + 90 * (i - 2), 70 + 10 + 69, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 2), 70 + 69, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 2), 70 + 69, 90, 69);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 27 + 90 * (i - 2), 70 + 17 + 69, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 20 + 90 * (i - 2), 70 + 10 + 69, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//				}
//			}
//			break;
//
//		case SCREEN_TANG_TOC_STATE_MAIN:
//			text.drawString2(g, namePart[1], 0x000000, GameConstants.SCREEN_WIDTH / 2, 15, GameConstants.CENTER_ANCHOR);
//			g.drawImage(blue, GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, "Bài số 1", 0xffffff, GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			g.drawImage(blue, GameConstants.SCREEN_WIDTH - GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, "Ô số " + (index_khoidong + 1), 0xffffff, GameConstants.SCREEN_WIDTH - GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			g.drawImage(nen1Img, GameConstants.SCREEN_WIDTH / 2, 65, GameConstants.TOP_HCENTER_ANCHOR);
//			g.drawImage(avatar2Img, GameConstants.SCREEN_WIDTH / 2, 215, GameConstants.TOP_HCENTER_ANCHOR);
//			if (duoiHinhBatChu_mhchinh.getPicture() != null) {
//				g.drawImage(duoiHinhBatChu_mhchinh.getPicture(), GameConstants.SCREEN_WIDTH / 2, 70, GameConstants.TOP_HCENTER_ANCHOR);
//			}
//
//			for (int i = 0; i < 6; i++) {
//				g.setColor(0xffffff);
//				if (i < 2) {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * i, 70, 90, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * i, 70, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * i, 70, 90, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//
//				} else if (i < 4) {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 2), 70 + 46, 90, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 2), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 2), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 2), 70 + 46, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 2), 70 + 46, 90, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 2), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 2), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//				} else {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 4), 70 + 46 + 46, 90, 47);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 4), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 4), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 4), 70 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 90 * (i - 4), 70 + 46 + 46, 90, 47);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 4), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 30 + 90 * (i - 4), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//				}
//			}
//			break;
//		case SCREEN_VE_DICH_STATE_MAIN:
//			text.drawString2(g, namePart[1], 0x000000, GameConstants.SCREEN_WIDTH / 2, 15, GameConstants.CENTER_ANCHOR);
//			g.drawImage(blue, GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, "Bài số 1", 0xffffff, GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			g.drawImage(blue, GameConstants.SCREEN_WIDTH - GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, "Ô số " + (index_khoidong + 1), 0xffffff, GameConstants.SCREEN_WIDTH - GameConstants.SCREEN_WIDTH / 4, 40, GameConstants.CENTER_ANCHOR);
//			g.drawImage(nen1Img, GameConstants.SCREEN_WIDTH / 2, 65, GameConstants.TOP_HCENTER_ANCHOR);
//			g.drawImage(avatar2Img, GameConstants.SCREEN_WIDTH / 2, 215, GameConstants.TOP_HCENTER_ANCHOR);
//			if (duoiHinhBatChu_mhchinh.getPicture() != null) {
//				g.drawImage(duoiHinhBatChu_mhchinh.getPicture(), GameConstants.SCREEN_WIDTH / 2, 70, GameConstants.TOP_HCENTER_ANCHOR);
//			}
//
//			for (int i = 0; i < 9; i++) {
//				g.setColor(0xffffff);
//				if (i < 3) {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * i, 70, 60, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * i, 70, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * i, 70, 60, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * i, 75, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//
//				} else if (i < 6) {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * (i - 3), 70 + 46, 60, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 3), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 3), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * (i - 3), 70 + 46, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * (i - 3), 70 + 46, 60, 46);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 3), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 3), 75 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//				} else {
//					if (index_khoidong == i) {
//						if (array_khoidong[i] != 1) {
//							g.setColor(0xc89925);
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * (i - 6), 70 + 46 + 46, 60, 47);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 6), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 6), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//						g.drawImage(khung1Img, GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * (i - 6), 70 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//					} else {
//						if (array_khoidong[i] != 1) {
//							g.fillRect(GameConstants.SCREEN_WIDTH / 2 - 90 + 60 * (i - 6), 70 + 46 + 46, 60, 47);
//							if (array_khoidong[i] == -1) {
//								g.drawImage(saiImg, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 6), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							} else {
//								g.drawImage(winplay2, GameConstants.SCREEN_WIDTH / 2 - 90 + 12 + 60 * (i - 6), 75 + 46 + 46, GameConstants.TOP_LEFT_ANCHOR);
//							}
//						}
//					}
//				}
//			}
//			break;
//		case SCREEN_KHOI_DONG_STATE_GOI_Y:
//			g.setColor(0xd2aa39);
//			g.fillRect(0, 0, GameConstants.SCREEN_WIDTH, 20);
//			text.drawString2(g, "Gợi ý", 0x000000, GameConstants.SCREEN_WIDTH / 2, 5, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, currentDuoiHinhBatChu.getGoi_y(), 0x000000, 10, 50, GameConstants.TOP_LEFT_ANCHOR);
//			break;
//		case SCREEN_KHOI_DONG_STATE_DAP_AN:
//			g.setColor(0xd2aa39);
//			g.fillRect(0, 0, GameConstants.SCREEN_WIDTH, 20);
//			text.drawString2(g, "Đáp án đúng", 0x000000, GameConstants.SCREEN_WIDTH / 2, 5, GameConstants.CENTER_ANCHOR);
//			g.drawImage(dhbcNameImg, GameConstants.SCREEN_WIDTH / 2, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, currentDuoiHinhBatChu.getGiai_thich_dap_an() + "\nSố điểm hiện tại của bạn là: " + diem, 0x000000, 10, 70, GameConstants.TOP_LEFT_ANCHOR);
//			break;
//		case SCREEN_KHOI_DONG_STATE_CHON_HINH:
//			g.drawImage(dhbcNameImg, GameConstants.SCREEN_WIDTH / 2, 15, GameConstants.CENTER_ANCHOR);
//			g.drawImage(blue, GameConstants.SCREEN_WIDTH / 2, 40, GameConstants.CENTER_ANCHOR);
//			text.drawString2(g, timeplay + "s", 0xffffff, GameConstants.SCREEN_WIDTH / 2, 40, GameConstants.CENTER_ANCHOR);
//			g.drawImage(nen1Img, GameConstants.SCREEN_WIDTH / 2, 65, GameConstants.TOP_HCENTER_ANCHOR);
//			g.drawImage(avatar2Img, GameConstants.SCREEN_WIDTH / 2, 215, GameConstants.TOP_HCENTER_ANCHOR);
//			if (currentDuoiHinhBatChu.getPicture() != null) {
//				g.drawImage(currentDuoiHinhBatChu.getPicture(), GameConstants.SCREEN_WIDTH / 2, 70, GameConstants.TOP_HCENTER_ANCHOR);
//			}
//			DrawUtils.setBottomBar(manager, "Menu", "", "Chọn");
//			if (timeplay <= 0) {
//				if (SCREEN_SHOW == SCREEN_KHOI_DONG) {
//					STATE = SCREEN_KHOI_DONG_STATE_MAIN;
//				} else if (SCREEN_SHOW == SCREEN_TANG_TOC) {
//					STATE = SCREEN_TANG_TOC_STATE_MAIN;
//				} else if (SCREEN_SHOW == SCREEN_VE_DICH) {
//					STATE = SCREEN_VE_DICH_STATE_MAIN;
//				}
//				array_khoidong[index_khoidong] = -1;
//			}
//			break;
//		default:
//			break;
//		}
//
//	}
//
//	public void drawPlay(Graphics g) {
//		g.drawImage(blueImg, GameConstants.SCREEN_WIDTH / 2, 48, GameConstants.CENTER_ANCHOR);
//		g.drawImage(playImg, GameConstants.SCREEN_WIDTH / 2, 138, GameConstants.CENTER_ANCHOR);
//		g.drawImage(avatar2Img, GameConstants.SCREEN_WIDTH / 2, 239, GameConstants.CENTER_ANCHOR);
//	}
//
//	private void sendDoKhoPackage(int dokho) {
//		DataPackage dataPackage = DataPackage.createDataPackage1(ProtocolConstants.RequestHeader.GAME_DUOI_HINH_BAT_CHU_OFF_ACTION_REQUEST);
//	    dataPackage.putInt(SEND_REQUEST_DO_KHO);
//	    dataPackage.putInt(dokho);
//	    Global.gameActionClient.write(dataPackage);
//	}
//	private void sendRequestOneQuestion() {
//		DataPackage dataPackage = DataPackage.createDataPackage1(ProtocolConstants.RequestHeader.GAME_DUOI_HINH_BAT_CHU_OFF_ACTION_REQUEST);
//	    dataPackage.putInt(SEND_REQUEST_QUESTION);
//	    dataPackage.putInt(currentQuestionIndex);
//	    Global.gameActionClient.write(dataPackage);
//	}
//	private void sendStringPackage(String str) {
//		DataPackage dataPackage = DataPackage.createDataPackage1(ProtocolConstants.RequestHeader.GAME_DUOI_HINH_BAT_CHU_OFF_ACTION_REQUEST);
//	    dataPackage.putInt(SEND_CAU_TRA_LOI);
//	    dataPackage.putString(str);
//	    Global.gameActionClient.write(dataPackage);
//	}
//	public void keyReleased(int keyCode) {
//		switch (keyCode) {
//		case Key.FIRE:
//			switch (SCREEN_SHOW) {
//			case SCREEN_MENU:
//				if (index_menu == 0) {
//					dokho = 0;
//					sendDoKhoPackage(0);
//					SCREEN_SHOW = SCREEN_KHOI_DONG;
//					// Load ảnh chính của màn hình khời động
//					try {
//						winplay1 = GameImage.createImage("/dhbc/winplay1.png");
//						winplay2 = GameImage.createImage("/dhbc/winplay2.png");
//						khung1Img = GameImage.createImage("/dhbc/khung1.png");
//					} catch (Exception e) {
//					}
//					STATE = SCREEN_KHOI_DONG_STATE_MAIN;
//					GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//					BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//					bottomBar.setLabels("Menu", "", "Chọn");
//					bottomBar.setLeftMenu("Menu", menu);
//				} else if (index_menu == 1) {
//					SCREEN_SHOW = SCREEN_TANG_TOC;
//					dokho = 1;
//					sendDoKhoPackage(dokho);
//					try {
//						duoiHinhBatChu_mhchinh.setPicture(GameImage.createImage("/dhbc/hinh-chinh.png"));
//						duoiHinhBatChu_mhchinh.setDapan_dung("Câu giờ");
//						duoiHinhBatChu_mhchinh.setDapan_1("Câu lươn");
//						duoiHinhBatChu_mhchinh.setDapan_2("Cấu cá");
//						duoiHinhBatChu_mhchinh.setDapan_3("Câu mai");
//						duoiHinhBatChu_mhchinh.setDapan_4("Câu giờ");
//						duoiHinhBatChu_mhchinh.setGiai_thich_dap_an("Đây là đáp án 'câu gấu' nhé");
//						duoiHinhBatChu_mhchinh.setGoi_y("Chơi với gấu nhé ");
//
//						winplay1 = GameImage.createImage("/dhbc/winplay3.png");
//						winplay2 = GameImage.createImage("/dhbc/winplay4.png");
//						khung1Img = GameImage.createImage("/dhbc/khung2.png");
//					} catch (Exception e) {
//					}
//					STATE = SCREEN_TANG_TOC_STATE_MAIN;
//					GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//					BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//					bottomBar.setLabels("Menu", "", "Chọn");
//					bottomBar.setLeftMenu("Menu", menu);
//				} else if (index_menu == 2) {
//					SCREEN_SHOW = SCREEN_VE_DICH;
//					dokho = 2;
//					sendDoKhoPackage(dokho);
//					// Load ảnh chính của màn hình khời động
//
//					try {
//						duoiHinhBatChu_mhchinh.setPicture(GameImage.createImage("/dhbc/hinh-chinh.png"));
//						duoiHinhBatChu_mhchinh.setDapan_dung("Câu giờ");
//						duoiHinhBatChu_mhchinh.setDapan_1("Câu lươn");
//						duoiHinhBatChu_mhchinh.setDapan_2("Cấu cá");
//						duoiHinhBatChu_mhchinh.setDapan_3("Câu mai");
//						duoiHinhBatChu_mhchinh.setDapan_4("Câu giờ");
//						duoiHinhBatChu_mhchinh.setGiai_thich_dap_an("Đây là đáp án 'câu gấu' nhé");
//						duoiHinhBatChu_mhchinh.setGoi_y("Chơi với gấu nhé ");
//
//						winplay1 = GameImage.createImage("/dhbc/winplay3.png");
//						winplay2 = GameImage.createImage("/dhbc/winplay4.png");
//						khung1Img = GameImage.createImage("/dhbc/khung3.png");
//					} catch (Exception e) {
//					}
//					STATE = SCREEN_VE_DICH_STATE_MAIN;
//					GameMenu menu = new GameMenu(new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//					BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//					bottomBar.setLabels("Menu", "", "Chọn");
//					bottomBar.setLeftMenu("Menu", menu);
//				}
//				break;
//			case SCREEN_KHOI_DONG:
//				if (STATE == SCREEN_KHOI_DONG_STATE_MAIN) {
//					STATE = SCREEN_KHOI_DONG_STATE_CHON_HINH;
//					sendRequestOneQuestion();
//				}
//				break;
//			case SCREEN_TANG_TOC:
//				if (STATE == SCREEN_TANG_TOC_STATE_MAIN) {
//					if (array_khoidong[index_khoidong] != -1 && array_khoidong[index_khoidong] != 1) {
//						STATE = SCREEN_KHOI_DONG_STATE_CHON_HINH;
//						// Khời tạo các thông tin của một ảnh khi mở ô
//						try {
//							currentDuoiHinhBatChu.setPicture(GameImage.createImage("/dhbc/hinh_phu.png"));
//							currentDuoiHinhBatChu.setDapan_dung("Câu giờ");
//							currentDuoiHinhBatChu.setDapan_1("Câu lươn");
//							currentDuoiHinhBatChu.setDapan_2("Cấu cá");
//							currentDuoiHinhBatChu.setDapan_3("Câu mai");
//							currentDuoiHinhBatChu.setDapan_4("Câu giờ");
//							currentDuoiHinhBatChu.setGiai_thich_dap_an("Đây là đáp án 'câu giờ' nhé");
//							currentDuoiHinhBatChu.setGoi_y("Có một cần cầu, và một đồng hồ");
//						} catch (Exception e) {
//						}
//						timeplay = 60;
//						GameMenu menu = new GameMenu(null, new String[]{currentDuoiHinhBatChu.getDapan_2(), currentDuoiHinhBatChu.getDapan_3(), currentDuoiHinhBatChu.getDapan_4(), currentDuoiHinhBatChu.getDapan_4()},
//								this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//						GameMenu menu1 = new GameMenu(new String[]{"Bỏ qua"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//						BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//						bottomBar.setLabels("Menu", "", "Chọn đáp án");
//						bottomBar.setLeftMenu("Menu", menu1);
//						bottomBar.setRightMenu("Chọn đáp án", menu);
//					}
//				} else if (STATE == SCREEN_KHOI_DONG_STATE_GOI_Y) {
//					STATE = SCREEN_TANG_TOC_STATE_MAIN;
//					GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//					BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//					bottomBar.reset();
//					bottomBar.setLabels("Menu", "", "Chọn");
//					bottomBar.setLeftMenu("Menu", menu);
//				} else if (STATE == SCREEN_KHOI_DONG_STATE_DAP_AN) {
//					STATE = SCREEN_TANG_TOC_STATE_MAIN;
//					GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//					BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//					bottomBar.reset();
//					bottomBar.setLabels("Menu", "", "Chọn");
//					bottomBar.setLeftMenu("Menu", menu);
//				}
//				break;
//			case SCREEN_VE_DICH:
//				if (STATE == SCREEN_VE_DICH_STATE_MAIN) {
//					if (array_khoidong[index_khoidong] != -1 && array_khoidong[index_khoidong] != 1) {
//						STATE = SCREEN_KHOI_DONG_STATE_CHON_HINH;
//						// Khời tạo các thông tin của một ảnh khi mở ô
//						try {
//							currentDuoiHinhBatChu.setPicture(GameImage.createImage("/dhbc/hinh_phu.png"));
//							currentDuoiHinhBatChu.setDapan_dung("Câu giờ");
//							currentDuoiHinhBatChu.setDapan_1("Câu lươn");
//							currentDuoiHinhBatChu.setDapan_2("Cấu cá");
//							currentDuoiHinhBatChu.setDapan_3("Câu mai");
//							currentDuoiHinhBatChu.setDapan_4("Câu giờ");
//							currentDuoiHinhBatChu.setGiai_thich_dap_an("Đây là đáp án 'câu giờ' nhé");
//							currentDuoiHinhBatChu.setGoi_y("Có một cần cầu, và một đồng hồ");
//						} catch (Exception e) {
//						}
//						timeplay = 60;
//						GameMenu menu = new GameMenu(null, new String[]{currentDuoiHinhBatChu.getDapan_2(), currentDuoiHinhBatChu.getDapan_3(), currentDuoiHinhBatChu.getDapan_4(), currentDuoiHinhBatChu.getDapan_4()},
//								this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//						GameMenu menu1 = new GameMenu(null, new String[]{"Bỏ qua"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//						BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//						bottomBar.setLabels("Menu", "", "Chọn đáp án");
//						bottomBar.setLeftMenu("Menu", menu1);
//						bottomBar.setRightMenu("Chọn đáp án", menu);
//					}
//				} else if (STATE == SCREEN_KHOI_DONG_STATE_GOI_Y) {
//					STATE = SCREEN_VE_DICH_STATE_MAIN;
//					GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//					BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//					bottomBar.reset();
//					bottomBar.setLabels("Menu", "", "Chọn");
//					bottomBar.setLeftMenu("Menu", menu);
//				} else if (STATE == SCREEN_KHOI_DONG_STATE_DAP_AN) {
//					STATE = SCREEN_VE_DICH_STATE_MAIN;
//					GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//					BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//					bottomBar.reset();
//					bottomBar.setLabels("Menu", "", "Chọn");
//					bottomBar.setLeftMenu("Menu", menu);
//				}
//				break;
//			}
//			break;
//		case Key.UP:
//			switch (SCREEN_SHOW) {
//			case SCREEN_MENU:
//				index_menu--;
//				if (index_menu < 0) {
//					index_menu = 2;
//				}
//				break;
//			case SCREEN_KHOI_DONG:
//				break;
//			case SCREEN_TANG_TOC:
//				break;
//			case SCREEN_VE_DICH:
//				break;
//			}
//
//			break;
//
//		case Key.DOWN:
//			switch (SCREEN_SHOW) {
//			case SCREEN_MENU:
//				index_menu++;
//				if (index_menu > 2) {
//					index_menu = 0;
//				}
//				break;
//			case SCREEN_KHOI_DONG:
//				break;
//			case SCREEN_TANG_TOC:
//				break;
//			case SCREEN_VE_DICH:
//				break;
//			}
//			break;
//
//		case Key.RIGHT:
//			switch (SCREEN_SHOW) {
//			case SCREEN_MENU:
//
//				break;
//			case SCREEN_KHOI_DONG:
//				if (STATE == SCREEN_KHOI_DONG_STATE_MAIN) {
//					index_khoidong++;
//					if (index_khoidong > 3) {
//						index_khoidong = 0;
//					}
//				} else if (STATE == SCREEN_KHOI_DONG_STATE_CHON_HINH) {
//
//				}
//				break;
//			case SCREEN_TANG_TOC:
//				if (STATE == SCREEN_TANG_TOC_STATE_MAIN) {
//					index_khoidong++;
//					if (index_khoidong > 5) {
//						index_khoidong = 0;
//					}
//				}
//				break;
//			case SCREEN_VE_DICH:
//				if (STATE == SCREEN_VE_DICH_STATE_MAIN) {
//					index_khoidong++;
//					if (index_khoidong > 8) {
//						index_khoidong = 0;
//					}
//				}
//				break;
//			}
//			break;
//
//		case Key.LEFT:
//			switch (SCREEN_SHOW) {
//			case SCREEN_MENU:
//
//				break;
//			case SCREEN_KHOI_DONG:
//				if (STATE == SCREEN_KHOI_DONG_STATE_MAIN) {
//					index_khoidong--;
//					if (index_khoidong < 0) {
//						index_khoidong = 3;
//					}
//				}
//				break;
//			case SCREEN_TANG_TOC:
//				if (STATE == SCREEN_TANG_TOC_STATE_MAIN) {
//					index_khoidong--;
//					if (index_khoidong < 0) {
//						index_khoidong = 5;
//					}
//				}
//				break;
//			case SCREEN_VE_DICH:
//				if (STATE == SCREEN_VE_DICH_STATE_MAIN) {
//					index_khoidong--;
//					if (index_khoidong < 0) {
//						index_khoidong = 8;
//					}
//				}
//				break;
//			}
//			break;
//
//		default:
//			break;
//		}
//	}
//
//	public void doTask() {
//		count = (count + 1) % 2000;
//		if (count % 10 == 0) {
//			if (timeplay > 0) {
//				timeplay--;
//			}
//		}
//	}
//
//	public void onActionPerform(Event event) {
//		String action = event.getAction();
//		if (action.equals("Giải hình lớn")) {
//
//		} else if (action.equals("Gợi ý")) {
//			STATE = SCREEN_KHOI_DONG_STATE_GOI_Y;
//			BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//			bottomBar.reset();
//			bottomBar.setLabels("", "", "Chọn");
//		} else if (action.equals("Lưu điểm")) {
//
//		} else if (action.equals("Thoát")) {
//
//		} else if (action.equals("Bỏ qua")) {
//			if (SCREEN_SHOW == SCREEN_KHOI_DONG) {
//				STATE = SCREEN_KHOI_DONG_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_TANG_TOC) {
//				STATE = SCREEN_TANG_TOC_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_VE_DICH) {
//				STATE = SCREEN_VE_DICH_STATE_MAIN;
//			}
//			GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//			BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//			bottomBar.reset();
//			bottomBar.setLabels("Menu", "", "Chọn");
//			bottomBar.setLeftMenu("Menu", menu);
//			array_khoidong[index_khoidong] = -1;
//		} else if (action.equals(currentDuoiHinhBatChu.getDapan_1())) {
//			if (SCREEN_SHOW == SCREEN_KHOI_DONG) {
//				STATE = SCREEN_KHOI_DONG_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_TANG_TOC) {
//				STATE = SCREEN_TANG_TOC_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_VE_DICH) {
//				STATE = SCREEN_VE_DICH_STATE_MAIN;
//			}
//			GameMenu menu = new GameMenu(null, new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//			BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//			bottomBar.reset();
//			bottomBar.setLabels("Menu", "", "Chọn");
//			bottomBar.setLeftMenu("Menu", menu);
//			sendStringPackage(currentDuoiHinhBatChu.getDapan_1());
//			/*if (currentDuoiHinhBatChu.getDapan_2().equals(currentDuoiHinhBatChu.getDapan_dung())) {
//				array_khoidong[index_khoidong] = 1;
//			} else {
//				array_khoidong[index_khoidong] = -1;
//			}*/
//		} else if (action.equals(currentDuoiHinhBatChu.getDapan_3())) {
//			if (SCREEN_SHOW == SCREEN_KHOI_DONG) {
//				STATE = SCREEN_KHOI_DONG_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_TANG_TOC) {
//				STATE = SCREEN_TANG_TOC_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_VE_DICH) {
//				STATE = SCREEN_VE_DICH_STATE_MAIN;
//			}
//			GameMenu menu = new GameMenu(new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//			BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//			bottomBar.reset();
//			bottomBar.setLabels("Menu", "", "Chọn");
//			bottomBar.setLeftMenu("Menu", menu);
//			if (currentDuoiHinhBatChu.getDapan_3().equals(currentDuoiHinhBatChu.getDapan_dung())) {
//				array_khoidong[index_khoidong] = 1;
//			} else {
//				array_khoidong[index_khoidong] = -1;
//			}
//		} else if (action.equals(currentDuoiHinhBatChu.getDapan_4())) {
//			if (SCREEN_SHOW == SCREEN_KHOI_DONG) {
//				STATE = SCREEN_KHOI_DONG_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_TANG_TOC) {
//				STATE = SCREEN_TANG_TOC_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_VE_DICH) {
//				STATE = SCREEN_VE_DICH_STATE_MAIN;
//			}
//			GameMenu menu = new GameMenu(new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//			BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//			bottomBar.reset();
//			bottomBar.setLabels("Menu", "", "Chọn");
//			bottomBar.setLeftMenu("Menu", menu);
//			if (currentDuoiHinhBatChu.getDapan_4().equals(currentDuoiHinhBatChu.getDapan_dung())) {
//				array_khoidong[index_khoidong] = 1;
//			} else {
//				array_khoidong[index_khoidong] = -1;
//			}
//		} else if (action.equals(currentDuoiHinhBatChu.getDapan_4())) {
//			if (SCREEN_SHOW == SCREEN_KHOI_DONG) {
//				STATE = SCREEN_KHOI_DONG_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_TANG_TOC) {
//				STATE = SCREEN_TANG_TOC_STATE_MAIN;
//			} else if (SCREEN_SHOW == SCREEN_VE_DICH) {
//				STATE = SCREEN_VE_DICH_STATE_MAIN;
//			}
//
//			GameMenu menu = new GameMenu(new String[]{"Giải hình lớn", "Gợi ý", "Lưu điểm", "Thoát"}, this, Constants.MENU_STYLE, 0, GameConstants.SCREEN_HEIGHT - 45);
//			BottomBar bottomBar = DrawUtils.getBottomBar(manager);
//			bottomBar.reset();
//			bottomBar.setLabels("Menu", "", "Chọn");
//			bottomBar.setLeftMenu("Menu", menu);
//
//			if (currentDuoiHinhBatChu.getDapan_4().equals(currentDuoiHinhBatChu.getDapan_dung())) {
//				array_khoidong[index_khoidong] = 1;
//				STATE = SCREEN_KHOI_DONG_STATE_DAP_AN;
//				BottomBar bottomBar1 = DrawUtils.getBottomBar(manager);
//				bottomBar1.reset();
//				bottomBar1.setLabels("", "OK", "");
//				diem = diem + 1000;
//			} else {
//				array_khoidong[index_khoidong] = -1;
//			}
//		}
//	}
//
//}
